package com.smallrig.mall.template.mychain;

import com.smallrig.extension.anno.Extension;
import com.smallrig.extension.chain.Context;
import org.springframework.core.annotation.Order;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Extension(bizId = "save")
@Service
@Order(2)
public class OrderSaveCommand implements OrderChain {


    @Override
    public boolean execute(Context context)  {
        OrderCtx orderContext = (OrderCtx) context;
        System.out.println("保存订单："+orderContext+" thread="+Thread.currentThread().getName());
        return false;
    }


}
